package com.ys.entity.storage;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_OnlinePurchaseReturn", catalog="Id")
public class TccOnlinePurchaseReturn extends BaseEntity<TccOnlinePurchaseReturn> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="EffectStock", nameJava="effectStock", typeDataBase="tinyint")
	private Integer effectStock;
	@YsField(nameDataBase="CreateChangeId", nameJava="createChangeId", typeDataBase="bigint")
	private Long createChangeId;
	@YsField(nameDataBase="PurchaseOrderId", nameJava="purchaseOrderId", typeDataBase="bigint")
	private Long purchaseOrderId;
	@YsField(nameDataBase="OrderAmount", nameJava="orderAmount", typeDataBase="decimal")
	private BigDecimal orderAmount;
	@YsField(nameDataBase="RefundAmount", nameJava="refundAmount", typeDataBase="decimal")
	private BigDecimal refundAmount;
	@YsField(nameDataBase="ServiceCharge", nameJava="serviceCharge", typeDataBase="decimal")
	private BigDecimal serviceCharge;
	@YsField(nameDataBase="RefundServiceCharge", nameJava="refundServiceCharge", typeDataBase="decimal")
	private BigDecimal refundServiceCharge;
	@YsField(nameDataBase="IsRefund", nameJava="isRefund", typeDataBase="tinyint")
	private Integer isRefund;
	@YsField(nameDataBase="RefundPayType", nameJava="refundPayType", typeDataBase="tinyint")
	private Integer refundPayType;
	@YsField(nameDataBase="RefundVid", nameJava="refundVid", typeDataBase="varchar")
	private String refundVid;
	@YsField(nameDataBase="RefundVyhzh", nameJava="refundVyhzh", typeDataBase="varchar")
	private String refundVyhzh;
	@YsField(nameDataBase="RefundVkhh", nameJava="refundVkhh", typeDataBase="varchar")
	private String refundVkhh;
	@YsField(nameDataBase="RefundVyhzhmc", nameJava="refundVyhzhmc", typeDataBase="varchar")
	private String refundVyhzhmc;
	@YsField(nameDataBase="AliLogisticsPlace", nameJava="aliLogisticsPlace", typeDataBase="varchar")
	private String aliLogisticsPlace;
	@YsField(nameDataBase="AliLogisticsCode", nameJava="aliLogisticsCode", typeDataBase="varchar")
	private String aliLogisticsCode;
	@YsField(nameDataBase="LogisticsCost", nameJava="logisticsCost", typeDataBase="decimal")
	private BigDecimal logisticsCost;
	@YsField(nameDataBase="RefundCommissionCharge", nameJava="refundCommissionCharge", typeDataBase="decimal")
	private BigDecimal refundCommissionCharge;
	@YsField(nameDataBase="RefundWanliCharge", nameJava="refundWanliCharge", typeDataBase="decimal")
	private BigDecimal refundWanliCharge;
	@YsField(nameDataBase="Refund1688Charge", nameJava="refund1688Charge", typeDataBase="decimal")
	private BigDecimal refund1688Charge;
	@YsField(nameDataBase="StorageCommissionCharge", nameJava="storageCommissionCharge", typeDataBase="decimal")
	private BigDecimal storageCommissionCharge;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="ReturnAddress", nameJava="returnAddress", typeDataBase="varchar")
	private String returnAddress;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccOnlinePurchaseReturn setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TccOnlinePurchaseReturn setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public Integer getEffectStock() {
		return effectStock;
	}
	public TccOnlinePurchaseReturn setEffectStock(Integer effectStock) {
		this.effectStock = effectStock;
		return this;
	}
	public Long getCreateChangeId() {
		return createChangeId;
	}
	public TccOnlinePurchaseReturn setCreateChangeId(Long createChangeId) {
		this.createChangeId = createChangeId;
		return this;
	}
	public Long getPurchaseOrderId() {
		return purchaseOrderId;
	}
	public TccOnlinePurchaseReturn setPurchaseOrderId(Long purchaseOrderId) {
		this.purchaseOrderId = purchaseOrderId;
		return this;
	}
	public BigDecimal getOrderAmount() {
		return orderAmount;
	}
	public TccOnlinePurchaseReturn setOrderAmount(BigDecimal orderAmount) {
		this.orderAmount = orderAmount;
		return this;
	}
	public BigDecimal getRefundAmount() {
		return refundAmount;
	}
	public TccOnlinePurchaseReturn setRefundAmount(BigDecimal refundAmount) {
		this.refundAmount = refundAmount;
		return this;
	}
	public BigDecimal getServiceCharge() {
		return serviceCharge;
	}
	public TccOnlinePurchaseReturn setServiceCharge(BigDecimal serviceCharge) {
		this.serviceCharge = serviceCharge;
		return this;
	}
	public BigDecimal getRefundServiceCharge() {
		return refundServiceCharge;
	}
	public TccOnlinePurchaseReturn setRefundServiceCharge(BigDecimal refundServiceCharge) {
		this.refundServiceCharge = refundServiceCharge;
		return this;
	}
	public Integer getIsRefund() {
		return isRefund;
	}
	public TccOnlinePurchaseReturn setIsRefund(Integer isRefund) {
		this.isRefund = isRefund;
		return this;
	}
	public Integer getRefundPayType() {
		return refundPayType;
	}
	public TccOnlinePurchaseReturn setRefundPayType(Integer refundPayType) {
		this.refundPayType = refundPayType;
		return this;
	}
	public String getRefundVid() {
		return refundVid;
	}
	public TccOnlinePurchaseReturn setRefundVid(String refundVid) {
		this.refundVid = refundVid;
		return this;
	}
	public String getRefundVyhzh() {
		return refundVyhzh;
	}
	public TccOnlinePurchaseReturn setRefundVyhzh(String refundVyhzh) {
		this.refundVyhzh = refundVyhzh;
		return this;
	}
	public String getRefundVkhh() {
		return refundVkhh;
	}
	public TccOnlinePurchaseReturn setRefundVkhh(String refundVkhh) {
		this.refundVkhh = refundVkhh;
		return this;
	}
	public String getRefundVyhzhmc() {
		return refundVyhzhmc;
	}
	public TccOnlinePurchaseReturn setRefundVyhzhmc(String refundVyhzhmc) {
		this.refundVyhzhmc = refundVyhzhmc;
		return this;
	}
	public String getAliLogisticsPlace() {
		return aliLogisticsPlace;
	}
	public TccOnlinePurchaseReturn setAliLogisticsPlace(String aliLogisticsPlace) {
		this.aliLogisticsPlace = aliLogisticsPlace;
		return this;
	}
	public String getAliLogisticsCode() {
		return aliLogisticsCode;
	}
	public TccOnlinePurchaseReturn setAliLogisticsCode(String aliLogisticsCode) {
		this.aliLogisticsCode = aliLogisticsCode;
		return this;
	}
	public BigDecimal getLogisticsCost() {
		return logisticsCost;
	}
	public TccOnlinePurchaseReturn setLogisticsCost(BigDecimal logisticsCost) {
		this.logisticsCost = logisticsCost;
		return this;
	}
	public BigDecimal getRefundCommissionCharge() {
		return refundCommissionCharge;
	}
	public TccOnlinePurchaseReturn setRefundCommissionCharge(BigDecimal refundCommissionCharge) {
		this.refundCommissionCharge = refundCommissionCharge;
		return this;
	}
	public BigDecimal getRefundWanliCharge() {
		return refundWanliCharge;
	}
	public TccOnlinePurchaseReturn setRefundWanliCharge(BigDecimal refundWanliCharge) {
		this.refundWanliCharge = refundWanliCharge;
		return this;
	}
	public BigDecimal getRefund1688Charge() {
		return refund1688Charge;
	}
	public TccOnlinePurchaseReturn setRefund1688Charge(BigDecimal refund1688Charge) {
		this.refund1688Charge = refund1688Charge;
		return this;
	}
	public BigDecimal getStorageCommissionCharge() {
		return storageCommissionCharge;
	}
	public TccOnlinePurchaseReturn setStorageCommissionCharge(BigDecimal storageCommissionCharge) {
		this.storageCommissionCharge = storageCommissionCharge;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TccOnlinePurchaseReturn setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public String getReturnAddress() {
		return returnAddress;
	}
	public TccOnlinePurchaseReturn setReturnAddress(String returnAddress) {
		this.returnAddress = returnAddress;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccOnlinePurchaseReturn setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccOnlinePurchaseReturn setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccOnlinePurchaseReturn setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccOnlinePurchaseReturn tccOnlinePurchaseReturn(
		String bid,
		Integer effectStock,
		Long createChangeId,
		Long purchaseOrderId,
		BigDecimal orderAmount,
		BigDecimal refundAmount,
		BigDecimal serviceCharge,
		BigDecimal refundServiceCharge,
		Integer isRefund,
		Integer refundPayType,
		String refundVid,
		String refundVyhzh,
		String refundVkhh,
		String refundVyhzhmc,
		String aliLogisticsPlace,
		String aliLogisticsCode,
		BigDecimal logisticsCost,
		BigDecimal refundCommissionCharge,
		BigDecimal refundWanliCharge,
		BigDecimal refund1688Charge,
		BigDecimal storageCommissionCharge,
		String remark,
		String returnAddress,
		Integer status
			) {
		TccOnlinePurchaseReturn entity = new TccOnlinePurchaseReturn();
		entity.setBid(bid);
		entity.setEffectStock(effectStock);
		entity.setCreateChangeId(createChangeId);
		entity.setPurchaseOrderId(purchaseOrderId);
		entity.setOrderAmount(orderAmount);
		entity.setRefundAmount(refundAmount);
		entity.setServiceCharge(serviceCharge);
		entity.setRefundServiceCharge(refundServiceCharge);
		entity.setIsRefund(isRefund);
		entity.setRefundPayType(refundPayType);
		entity.setRefundVid(refundVid);
		entity.setRefundVyhzh(refundVyhzh);
		entity.setRefundVkhh(refundVkhh);
		entity.setRefundVyhzhmc(refundVyhzhmc);
		entity.setAliLogisticsPlace(aliLogisticsPlace);
		entity.setAliLogisticsCode(aliLogisticsCode);
		entity.setLogisticsCost(logisticsCost);
		entity.setRefundCommissionCharge(refundCommissionCharge);
		entity.setRefundWanliCharge(refundWanliCharge);
		entity.setRefund1688Charge(refund1688Charge);
		entity.setStorageCommissionCharge(storageCommissionCharge);
		entity.setRemark(remark);
		entity.setReturnAddress(returnAddress);
		entity.setStatus(status);
		return entity;
	}
}